import type { PropType } from 'vue';

export const contextMenuProps = {
	items: {
		type: Array as PropType<any[]>,
		default: () => [],
	},
	loading: {
		type: Boolean,
		default: false,
	},
};

export const contextMenuItemProps = {
	item: {
		type: Object as PropType<any>,
	},
	loading: {
		type: Boolean,
		default: false,
	},
};

export interface ContextMenuEvents {
	(name: 'click', value: any): void;
}
